package com.whfc.ms.api.fse.service.impl;

import com.whfc.fvs.dto.FvsDeviceDTO;
import com.whfc.fvs.service.FvsDeviceService;
import com.whfc.ms.api.fse.service.MsFseService;
import org.apache.dubbo.config.annotation.DubboReference;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author qzexing
 * @version 1.0
 * @date 2020-12-22 18:10
 */
@Service
public class MsFseServiceImpl implements MsFseService {

    private final Logger logger = LoggerFactory.getLogger(this.getClass());

    @DubboReference(interfaceClass = FvsDeviceService.class, version = "1.0.0")
    private FvsDeviceService fvsDeviceService;

    @Override
    public List<FvsDeviceDTO> getFvsList(Integer deptId) {
        return fvsDeviceService.listFvsDeviceSimpleInfo(deptId);
    }
}
